home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / gcc263-src.lha / gcc-2.6.3 / config / mips / mips-5.h < prev    next >
C/C++ Source or Header  |  1994-08-14  |  2KB  |  46 lines

  1. /* Definitions of target machine for GNU compiler.  MIPS RISC-OS 5.0
  2.    default version.
  3.    Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU CC.
  6.  
  7. GNU CC is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2, or (at your option)
  10. any later version.
  11.  
  12. GNU CC is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with GNU CC; see the file COPYING.  If not, write to
  19. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. #define LINK_SPEC "\
  22. %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
  23. %{bestGnum} %{shared} %{non_shared} \
  24. %{call_shared} %{no_archive} %{exact_version} \
  25. %{!shared: %{!non_shared: %{!call_shared: -non_shared}}}"
  26.  
  27. #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt1.o%s crtn.o%s}}"
  28.  
  29. #include "mips/mips.h"
  30.  
  31. /* Some assemblers have a bug that causes backslash escaped chars in .ascii
  32.    to be misassembled, so we just completely avoid it.  */
  33. #undef ASM_OUTPUT_ASCII
  34. #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)            \
  35. do {                            \
  36.   unsigned char *s;                    \
  37.   int i;                        \
  38.   for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++)    \
  39.     {                            \
  40.       if ((i % 8) == 0)                    \
  41.     fputs ("\n\t.byte\t", (FILE));            \
  42.       fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
  43.     }                            \
  44.   fputs ("\n", (FILE));                    \
  45. } while (0)
  46.